import {
    instance
} from "@/utils";

/**
 * 帮助文档
 * @param {*} data
 * @returns
 */
export async function getSysHelpDocumentApi(data) {
    return instance.request({
        url: "/sys/getSysHelpDocument",
        method: "post",
        custom: {
            auth: true,
        },
        data,
    });
}


/**
 * 查询banner
 * @param {*} data
 * @returns
 */
export async function getSysBannerApi(data) {
    return instance.request({
        url: "/sys/getSysBanner",
        method: "post",
        data,
    });
}

/**
 * 查询海报
 * @param {*} data
 * @returns
 */
export async function getSysPosterApi(data) {
    return instance.request({
        url: "/sys/getSysPoster",
        method: "post",
        custom: {
            auth: true,
        },
        data,
    });
}

/**
 * 获取邀请海报背景
 * @param {*} data
 * @returns
 */
export async function getSysInviteApi(data) {
    return instance.request({
        url: "/sys/getSysInvite",
        method: "post",
        custom: {
            auth: true,
        },
        data,
    });
}

/**
 * 合作类型
 * @param {*} data
 * @returns
 */
export async function getSysHHRIntroduceApi(data) {
    return instance.request({
        url: "/sys/getSysHHRIntroduce",
        method: "post",
        custom: {
            auth: true,
        },
        data,
    });
}

/**
 * 提现提示
 * @param {*} data
 * @returns
 */
export async function getSysDepositApi(data) {
    return instance.request({
        url: "/sys/getSysDeposit",
        method: "post",
        custom: {
            auth: true,
        },
        data,
    });
}

/**
 * 文件上传
 * @param {*} data
 * @returns
 */
export async function uploadFileApi(data) {
    return instance.request({
        url: "/file/uploadFile",
        method: "post",
        custom: {
            auth: true,
        },
        data,
    });
}

/**
 * 获取活动专区页图片
 * @param {*} data
 * @returns
 */
export async function getSysMarketingPicApi(data) {
    return instance.request({
        url: "sys/getSysMarketingPic",
        method: "post",
        data,
    });
}


/**
 * 查询联系方式
 * @param {*} data
 * @returns
 */
export async function getInformationApi(data) {
    return instance.request({
        url: "/sys/getInformation",
        method: "post",
        data,
    });
}
